package com.example.springbootshiro.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.springbootshiro.entity.base.BaseEntity;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author: lex
 * @Date: 2018/11/14
 */
@Data
@ToString(callSuper = true)
@TableName("tb_mp_user")
public class MpUserInfo extends BaseEntity<MpUserInfo> {

    @NotNull
    private String username;

    @NotNull
    @Email
    private String nickName;

    private String password;

    private Short gender;

    private Integer age;

    @TableField(exist = false)
    private List<MpShiroPermsInfo> mpShiroPermsInfoList;
}
